package com.runda.partypolicy.app.others;

import android.os.Environment;

import com.blankj.utilcode.util.Utils;

import java.io.File;

/**
 * author:  RD_CY
 * date:    2017/5/2
 * version: v1.0
 * description: 静态常量存放处
 */
public class Constants {

    public static final boolean DEBUG = true;
    public static final int TIME_DELAY_CLICK = 250;
    public static final int TIME_THROTTLE_CLICK = 500;
    public static final int TIME_RECORD_INFO_KEEP = 7 * 1000 * 60 * 60 * 24;//登录后信息保存有效时长，单位 毫秒
    public static final int PAGE_SIZE = 10;
    public static final int ERROR_CODE_LOCAL = 1000;
    public static final int ERROR_CODE_REMOTE = 1001;
    public static final int ERROR_CODE_OTHERS = 1002;
    public static final int ERROR_CODE_TIMEOUT = 1003;
    public static final int ERROR_CODE_CONNECT = 1004;
    public static final int ERROR_CODE_DECRYPT = 1005;
    public static final int ERROR_CODE_JSONPARSE = 1006;
    public static final int ERROR_CODE_NONETWORK = 1101;
    public static final int ERROR_CODE_NOTSIGNED = 1102;
    public static final int ERROR_CODE_TOKENVOERTIME = 1201;
    public static EnumInspectionNFC enumInspectionNFC;
    public static final String ERROR_STRING_UNKNOWN = "发生了一点错误 ⊙ˍ⊙";
    public static final String ERROR_STRING_TIMEOUT = "连接超时啦 (*´Д｀*)";
    public static final String ERROR_STRING_CONNECT = "服务器君不见了 (#°Д°)";
    public static final String ERROR_STRING_SERVICE = "服务器君操作失败 (#°Д°)";
    public static final String ERROR_STRING_DECRYPT = "参数加密或解密错误 >_<";
    public static final String ERROR_STRING_JSONPARSE = "参数解析错误 ⊙ˍ⊙";
    public static final String ERROR_STRING_CREATEPARAM = "生成参数错误 ⊙ˍ⊙";
    public static final String ERROR_STRING_GETDATAFAILED = "获取信息失败了 >_<";
    public static final String ERROR_STRING_NONETWORK = "身处没有网络的异次元";
    public static final String ERROR_STRING_NOTSIGNED = "您还尚未登录";
    public static final String ERROR_STRING_TOKENVOERTIME = "当前登录会话已过期，请重新登录";

    public static final String WECHAT_ID = "";
    public static final String APPID_BUGLY = "";

//    public static final String WEB_HOST = "https://dev3.wfgxic.com/api/v1/";
    public static final String WEB_HOST = "https://znxj.wfgxic.com:81/api/v1/";
//    public static final String IMG_HOST = "https://dev3.wfgxic.com";
    public static final String IMG_HOST = "https://znxj.wfgxic.com:81";

    public static final String PATH_CACHE = Utils.getApp().getCacheDir().getAbsolutePath()
            + File.separator + "data" + File.separator + "cache";
    public static final String PATH_IMAGES = Environment.getExternalStorageDirectory().getAbsolutePath()
            + File.separator + "MedicineAlliance" + File.separator + "Images";
    public static final String PATH_IMAGESCROP = Environment.getExternalStorageDirectory().getAbsolutePath()
            + File.separator + "MedicineAlliance" + File.separator + "Images" + File.separator + "Crops";
    public static final String PATH_DOWNLOAD = Environment.getExternalStorageDirectory().getAbsolutePath()
            + File.separator + "MedicineAlliance" + File.separator + "Downloads";

    public static final String EXPERT_LIST_TYPE_DISEASE = "disease";
    public static final String EXPERT_LIST_TYPE_DEPARTMENT = "department";

    public static final int TYPE_SCAN =2 ;
    public static final int TYPE_NFC=1 ;
}

